import os
# 文件或文件夹是否存在
print(os.path.exists(os.path.join("/Users", "zhangxiangbin", "BookIndex", "9.5万G纪录片目录.txt")))
# 是否是文件夹
print(os.path.isdir(os.path.join("/Users", "zhangxiangbin", "BookIndex", "9.5万G纪录片目录.txt")))
# 是否是文件
print(os.path.isfile(os.path.join("/Users", "zhangxiangbin", "BookIndex", "9.5万G纪录片目录.txt")))